package com.foreknow.entity;

public class DepartmentModel {
    //ID
    private Integer id;
    //科室编码
    private String deptcode;
    //科室名
    private String deptname;
    //科室分类
    private Integer deptcategoryid;
    //分类名称
    private String deptcategoryidname;
    //科室类别
    private Integer depttype;
    //删除标记
    private Integer delmark;
    //科室类别名类
    private DeptType depttypemodle;
    //科室别名
    private String depttypemodlename;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeptcode() {
        return deptcode;
    }

    public void setDeptcode(String deptcode) {
        this.deptcode = deptcode;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    public Integer getDeptcategoryid() {
        return deptcategoryid;
    }

    public void setDeptcategoryid(Integer deptcategoryid) {
        this.deptcategoryid = deptcategoryid;
    }

    public String getDeptcategoryidname() {
        return deptcategoryidname;
    }

    public void setDeptcategoryidname(String deptcategoryidname) {
        this.deptcategoryidname = deptcategoryidname;
    }

    public Integer getDepttype() {
        return depttype;
    }

    public void setDepttype(Integer depttype) {
        this.depttype = depttype;
    }

    public Integer getDelmark() {
        return delmark;
    }

    public void setDelmark(Integer delmark) {
        this.delmark = delmark;
    }

    public void newDepttypemodle(){
        if (this.depttype!=null){
            this.depttypemodle = new DeptType(this.depttype);
            depttypemodlename = depttypemodle.getName();
        }
    }

    public String getDepttypemodlename() {
        return depttypemodlename;
    }

    public void setDepttypemodlename(String depttypemodlename) {
        this.depttypemodlename = depttypemodlename;
    }
}
